package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/*
*   事故明细表
* */
@Getter
@Setter
public class Accident {

    //状态值常量
    public static  final int LAPSE_OF_POLICY = 1;           //保单失效
    public static  final int WAIT_VERIFY = 2;                //待验证
    public static  final int VERIFY_WRITE_CLAIM = 3;        //验证完,待填理赔
    public static  final int DISCARD  = 4;                  //废弃
    public static  final int WAIT_CHECK  = 5;               //待审核
    public static  final int REJECT_CHECK  = 6;              //被拒审核
    public static  final int CHECK_OVER  = 7;               //审核完,待付款给保人
    public static  final int END_COMPENSATE =8;             //已赔付



    private Long id;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone ="GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date otime;   //发生时间

    private String site;   //发生地点

    private String info;    //案情描述

    private int status=Accident.WAIT_VERIFY; //状态

    private String remark;   //备注

    private Long payId;   //paymentresult的id  注意需要改变    缴费id

    private String duty;  //事故责任

    private String ename;  //操作人


}